﻿using System.ComponentModel.DataAnnotations;

namespace B.S.DataBase.MyProject.Domain
{
    public class LeaveApplications
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int ApplicationId { get; set; }
        /// <summary>
        /// 申请人名称
        /// </summary>
        public string UserName { get; set; }
        public int? DepId { get; set; }

        /// <summary>
        /// 请假类型
        /// </summary>
        public int LeaveType { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime EndTime { get; set; }
        public string? Leavetime { get; set; }
        /// <summary>
        /// 总工时
        /// </summary>
        public long? Totalhours { get; set; }
        /// <summary>
        /// 请假原因
        /// </summary>
        public string Reason { get; set; }

        /// <summary>
        /// 部门领导名称
        /// </summary>
        public string DepheadsName { get; set; }



        /// <summary>
        /// 申请状态  0:提交  1：处理中  2:已完成
        /// </summary>
        public int Status { get; set; }



        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 删除标志位
        /// </summary>
        public bool IsDelete { get; set; }


        /// <summary>
        /// 拒绝原因
        /// </summary>
        public string? Reasonrejection { get; set; }

    }
}
